<template>
	<view>
		<header-bar :title=titleName>
			<uni-icons type="undo" size="23" slot="back"></uni-icons>
		</header-bar>
		<view class="top" @click="go">
			<view class="people">
				<view>收货人：孟萌</view>
				<view>联系电话：15535477088</view>
			</view>
			<image class="img1" src="https://s2.loli.net/2022/06/02/mPHOR6yMTUJckZn.png" mode=""></image>
			<view class="address">山西省晋中市太谷县学院路8号山西农业大学信息工程学院</view>
		</view>
		<!-- 底部的边框线 -->
		<image src="/static/cart_border@2x.png" class="address-border"></image>
		<view class="order-item">
			<view class="good-box">
				<image
					src="https://img11.360buyimg.com/n1/jfs/t1/135257/32/22355/280244/61e90204E52ca6244/a5bc31c99ad3401e.jpg.avif"
					class="good-img">
				</image>
				<view class="good-info">
					<view class="good-title">
						尊福林 园艺工具套装家用种植工具箱种菜种花多肉松土铲子...
					</view>
					<view class="good-time">
						刚买回来用过里面一个工具
					</view>
					<view class="good-bottom">
						<view class="good-price p1">
							¥{{89.0}}
						</view>
					</view>
					<view class="img">
						<image class="image_radius" src="https://s2.loli.net/2022/05/26/rdRQtgNxYy8WFIw.jpg" />
						<text class="pet">鹿鹿迷路了i</text>
					</view>
				</view>
			</view>
		</view>
		<view class="bottom">
			<view class="price1">
				<view class="jiage">商品价格</view>
				<view class="jiage1">¥89.0</view>
			</view>
			<view class="price1">
				<view class="jiage">使用积分</view>
				<view class="jiage1">786 - 0 = 799 </view>
			</view>
			<view class="price1">
				<view class="jiage">优惠金额</view>
				<view class="jiage2">-¥10</view>
			</view>
			<view class="price1">
				<view class="jiage">运费</view>
				<view class="jiage1">¥0.00</view>
			</view>
			<view class="price1">
				<view class="jiage">税费</view>
				<view class="jiage1">¥0.00</view>
			</view>
			<view class="price1">
				<view class="jiage">发票</view>
				<view class="jiage1">不开发票</view>
			</view>
			<view class="price1">
				<view class="jiage">买家留言</view>
				<view class="jiage1">给卖家留言（45字以内）</view>
			</view>
		</view>
		<view class="btn" @click="shows=true">立即付款</view>
		<view class="jia">¥79.0</view>
		<passkeyborad :show="shows" @close="tapClose"></passkeyborad>
	</view>
</template>

<script>
	import passkeyborad from '@/components/yzc-paykeyboard/yzc-paykeyboard.vue';
	export default {
		components: {
			passkeyborad
		},
		data() {
			return {
				shows: false,
				titleName:"确认订单",
			}
		},
		methods:{
			tapClose(){
				this.shows=false
			},
			go: function() {
				uni.navigateTo({
					url: '/subpkg/address/address'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.top {
		width: 100%;
		height: 230rpx;
		border: 1px solid darkgray;
		border-radius: 15px;
		border-bottom: none;

		.people {
			width: 100%;
			height: 70rpx;
			padding-top: 40rpx;
			border-radius: 20px;
			display: flex;
			justify-content: space-around;
		}

		.img1 {
			width: 40rpx;
			height: 40rpx;
			margin-left: 60rpx;
			margin-top: 27rpx;
			float: left;
		}

		.address {
			color: gray;
			float: left;
			font-size: 28rpx;
			margin-left: 40rpx;
			margin-top: 10rpx;
			width: 73%;
		}
	}

	.address-border {
		display: block;
		width: 100%;
		height: 5px;
	}

	.order-item {
		width: 740rpx;
		height: 280rpx;
		// background: #d2fdff;
		border: 1px solid lightgrey;
		opacity: 1;
		display: flex;
		margin-left: 3rpx;
		border-radius: 20px;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		position: relative;
	}

	.order-item .good-box {
		width: 670rpx;
		height: 210rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.order-item .good-box .good-img {
		margin-top: 35px;
		width: 230rpx;
		height: 230rpx;
		opacity: 1;
		border-radius: 16rpx;
	}

	.good-box .good-info {
		margin-top: 80rpx;
		width: 420rpx;
		height: 240rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}

	.good-info .good-title {
		width: 420rpx;
		height: 88rpx;
		font-size: 29rpx;
		font-family: PingFang SC;
		font-weight: bold;
		line-height: 45rpx;
		color: #000000;
		opacity: 1;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.good-time {
		color: orange;
		font-size: 28rpx;
		margin-top: 5rpx;
	}

	.good-info .good-bottom {
		width: 100%;
		height: 50rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.good-info .good-bottom .good-price {
		margin-top: -16rpx;
		height: 10rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		line-height: 10rpx;
		color: red;
		opacity: 1;
	}

	.img {
		width: 100%;

		.image_radius {
			float: left;
			width: 60rpx;
			height: 60rpx;
			border-radius: 50%;
		}

		.pet {
			float: left;
			display: block;
			margin-top: 10rpx;
			margin-left: 20rpx;
			font-size: 30rpx;
		}
	}

	.bottom {
		width: 98%;
		margin-left: 5rpx;
		height: 500rpx;
		border: 1px solid darkgray;
		border-top: none;
		border-radius: 15rpx;

		.price1 {
			width: 84%;
			height: 70rpx;
			font-size: 29rpx;
			line-height: 70rpx;
			padding: 0 60rpx;

			.jiage {
				float: left;
			}

			.jiage1,
			.jiage2 {
				float: right;
			}

			.jiage2 {
				color: red;
			}
		}
	}

	.jia {
		position: absolute;
		color: red;
		font-size: 40rpx;
		bottom: 30rpx;
		right: 350rpx;
	}

	.btn {
		position: absolute;
		width: 300rpx;
		height: 110rpx;
		color: white;
		line-height: 110rpx;
		text-align: center;
		bottom: 0;
		right: 0;
		background-color: orangered;
	}
</style>
